 $(document).ready(function() { 
		
	$('#userfile').live('change', function() { 
		$("#image_preview").html('');
		$("#image_preview").html('<img src="../resources/loader.gif" alt="Uploading...."/>');
		$("#offer-form").ajaxForm({
					target: '#image_preview'
		}).submit();
	});
}); 